@extends('common.base-master')

@section('html-head')
    <link rel="stylesheet" type="text/css" href="{{url('css/bootstrap.min.css')}}">
    <link href="{{url('css/project-base.css')}}" type="text/css" rel="stylesheet"/>
    <script src="{{url('js/project-base.js')}}"></script>
@endsection

@section('html-body')
    <main>
        <div class="wrapp">
            <div class="contain">
                <section class="cre-pro">
                    <h1>基础信息</h1>
                    <div class="table-box">
                        <ul>
                            <li><em class="pro-name"><em class="c-m">*</em><em class="c-name">项目名称</em></em><em class="c-i"><input type="text" value="{{$project->project_name}}" /></em></li>
                            <li><em class="error c-e-1">123</em></li>
                            <li class="c-area"><em class="pro-name"><em class="c-m">*</em><em class="c-name">一句话介绍</em></em><em class="c-i"><textarea>{{$project->project_intro}}</textarea></em><p><em class="re-num">0</em>/30</p></li>
                            <li><em class="error c-e-2">123</em></li>
                            <li><em class="pro-name"><em class="c-m">*</em><em class="c-name">产品LOGO</em></em><a class="logo" href="#"><img src="{{route('Api.ProjectLogo.Show',['id'=>$project->id])}}" /></a><em class="c-u-d">请上传 256 x 256 以上像素的图片，</em><em class="c-u-d">格式为JPG、JPEG、PNG，小于5MB</em></li>
                            <li><em class="pro-name"><em class="c-m">*</em><em class="c-name">产品状态</em></em>
                                <select class="c-s">
                                    <option value="DEMO" @if($project->project_status == 'DEMO') selected="selected" @endif>DEMO</option>
                                    <option value="研发中" @if($project->project_status == '研发中') selected="selected" @endif>研发中</option>
                                    <option value="初上线" @if($project->project_status == '初上线') selected="selected" @endif>初上线</option>
                                    <option value="运营中" @if($project->project_status == '运营中') selected="selected" @endif>运营中</option>
                                    <option value="已盈利" @if($project->project_status == '已盈利') selected="selected" @endif>已盈利</option>
                                </select>
                            </li>
                            <li><em class="pro-name"><em class="c-m">*</em><em class="c-name">所属行业</em></em>
                                <div class="c-m-list">
                                    <ul>
                                        @foreach($fields as $field)
                                            <li><input name="checkbox" id="projectFields" type="checkbox" {{$field->checked}} value="{{$field->id}}" />{{$field->field}}</li>
                                        @endforeach
                                    </ul>
                                </div>
                            </li>
                            <li><em class="pro-name"><em class="c-m">*</em><em class="c-name">产品链接</em></em>
                                <div class="c-m-i c-m-f">
                                    <ul>
                                        @foreach($project_urls as $project_url)
                                        <li><input type="text" placeholder="官方网站" class="c-url" value="@if($project_url->url_type == 'web') {{$project_url->url_name}} @endif" /></li>
                                        <li><em class="error i-e-c">123</em></li>
                                        <li><input type="text" placeholder="IOS 地址" class="i-url" value="@if($project_url->url_type == 'ios') {{$project_url->url_name}} @endif" /></li>
                                        <li><em class="error i-e-i">123</em></li>
                                        <li><input type="text" placeholder="安卓地址" class="a-url" value="@if($project_url->url_type == 'android') {{$project_url->url_name}} @endif"/></li>
                                        <li><em class="error i-e-a">123</em></li>
                                        @endforeach
                                    </ul>
                                </div>
                            </li>

                            <li class="c-next"><button>下一步</button></li>
                        </ul>
                    </div>
                </section>
            </div>
        </div>
        <div class="mirror"></div>
    </main>
@endsection